package com.geostart.constructionland.system.service;


import com.geostar.constructionland.common.entity.analyse.AlyTypeMapping;
import com.geostar.constructionland.common.entity.response.ExtJsAjaxResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 分析映射服务
 */
@FeignClient(name = "constructionland-analyse")
public interface AnalyseMappedFeignClient {

    @RequestMapping(value = "/analyseMapped/getAnalyseMapped",method = RequestMethod.POST)
    ExtJsAjaxResponse getAnalyseMapped(@RequestParam("page") int pageNo, @RequestParam("limit") int pageNum
                                       ,@RequestParam("query_mapped_name") String query_mapped_name);

    @RequestMapping(value = "/analyseMapped/insertAnalyseMapped",method = RequestMethod.POST,consumes = "application/json")
    ExtJsAjaxResponse addAnalyseMapped(@RequestBody AlyTypeMapping alyTypeMapping);

    @RequestMapping(value = "/analyseMapped/update",method = RequestMethod.POST,consumes = "application/json")
    ExtJsAjaxResponse updateAnalyseMapped(@RequestBody AlyTypeMapping alyTypeMapping);

    @RequestMapping(value = "/analyseMapped/delete",method = RequestMethod.POST)
    ExtJsAjaxResponse deleteAnalyseMapped(@RequestParam(value = "mappingId") String mappingId);
}
